import QtQuick 1.0
import "../Delegates"

//Retweetのメニュー用
ListView {
    id: _rootListView
    x: 0
    y: 0
    height: parent.height
    width: parent.width
    clip: true      //これをしないと下へスクロールする時にアクションバーに食い込む


    delegate: Delegate{
        id: _delegate
        width: _rootListView.width

        itemIndex: _index
        itemTitle: ""
        itemMessage: _title
        itemInformation: ""
        iconVisible: false

        onClicked: {
            //次の動作
            switch(prevPressedButtons){
            case Qt.LeftButton:
                //左クリック
                switch(itemIndex){
                case 0:
                    //Retweets by others
                    _contentContainer.state = "RetweetToMe"
                    break;
                case 1:
                    //Retweets by you(by me)
                    _contentContainer.state = "RetweetByMe"
                    break;
                case 2:
                    //Your tweets retweeted
                    _contentContainer.state = "RetweetOfMe"
                    break;
                default:
                    break;
                }
                break;
            case Qt.RightButton:
                break;
            default:
                break;
            }
        }

    }
}
